package com.onegroup.common.enums;

import lombok.*;

/**
 * @author: 曾雪斌
 * @Description: 常用状态枚举
 * @History:
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@ToString
public enum ResponseStatusEnum {

    SUCCESS(200, "success", "请求成功！"),
    FAILED(500, "failed", "请求失败！"),
    USER_ERROR(501, "error", "登录名或密码有误，请重新输入"),
    USER_LOCK(502, "error", "账号已被锁定，请联系管理员"),
    TOKEN_ERROR(503, "error", "Token不合法"),
    NOT_LOGIN(504, "warn", "当前用户未登录"),
    UNKNOWN_ERROR(505, "error", "意料之外的错误"),
    ROLE_ERROR(403, "error", "您暂无权限操作"),
    AUTH_ERROR(401, "error", "您登录认证失败，请重新登录");

    private Integer code;
    private String status;
    private String msg;

}
